package com.settlement.system.model.entity.common;

import java.math.BigDecimal;
import java.util.Date;

import java.io.Serializable;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.settlement.system.converter.TblRefundAuditBillConvert;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 退款稽核单据明细表
 * @author xiaochuan
 * @since 2020-06-24
 */
@Data
@ExcelIgnoreUnannotated
@HeadStyle(fillBackgroundColor = 9,fillForegroundColor = 9)
@HeadRowHeight(value = 20)
@HeadFontStyle(fontHeightInPoints = 14)
public class TblRefundAuditBillDtl extends BaseModel implements Serializable {


    /**
     * 用户名
     */
    @ExcelProperty(value = "用户名")
    @ApiModelProperty(value = "用户名")
    private String userName;

    /**
     * 登录名
     */
    @ExcelProperty(value = "登录名")
    @ApiModelProperty(value = "登录名")
    private String loginName;

    /**
     * 角色编码
     */
    @ExcelProperty(value = "角色编码")
    @ApiModelProperty(value = "角色编码")
    private String roleNo;

    /**
     * 责任方编码
     */
    @ExcelProperty(value = "责任方编码")
    @ApiModelProperty(value = "责任方编码")
    private String responsibleNo;

    /**
     * 责任方
     */
    @ExcelProperty(value = "责任方")
    @ApiModelProperty(value = "责任方")
    private String responsibleName;

    /**
     * 损失原因编码
     */
    @ExcelProperty(value = "损失原因编码")
    @ApiModelProperty(value = "损失原因编码")
    private String lossReasonNo;

    /**
     * 损失原因
     */
    @ExcelProperty(value = "损失原因")
    @ApiModelProperty(value = "损失原因")
    private String lossReasonName;


    /**
     * 损失原因细则编码
     */
    @ApiModelProperty(value = "损失原因细则编码")
    private String lossReasonDtlNo;

    /**
     * 损失原因细则名称
     */
    @ExcelProperty(value = "损失原因细则名称")
    @ApiModelProperty(value = "损失原因细则名称")
    private String lossReasonDtlName;

    /**
     * 单据状态编码
     */
    @ExcelProperty(value = "单据状态编码")
    @ApiModelProperty(value = "单据状态编码")
    private String billStatusNo;

    /**
     * 单据状态名称
     */
    @ExcelProperty(value = "单据状态名称")
    @ApiModelProperty(value = "单据状态名称")
    private String billStatusName;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 质检时间
     */
    @ExcelProperty(value = "质检时间")
    @ApiModelProperty(value = "质检时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date qualityDate;

    /**
     * 质检单号
     */
    @ExcelProperty(value = "质检单号")
    @ApiModelProperty(value = "质检单号")
    private String qualityBillNo;

    /**
     * 质检数量
     */
    @ExcelProperty(value = "质检数量")
    @ApiModelProperty(value = "质检数量")
    private Integer qualityQty;

    /**
     * 打款时间
     */
    @ExcelProperty(value = "打款时间")
    @ApiModelProperty(value = "打款时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date paymentTime;

    /**
     * 收款交易号
     */
    @ExcelProperty(value = "收款交易号")
    @ApiModelProperty(value = "收款交易号")
    private String collectionTransactionNo;

    /**
     * 收款金额
     */
    @ExcelProperty(value = "收款金额")
    @ApiModelProperty(value = "收款金额")
    private BigDecimal receivingAmount;

    /**
     * 状态（确认和撤销两种）
     */
    @ExcelProperty(value = "状态")
    @ApiModelProperty(value = "状态")
    private String statusName;

    /**
     * 单据编码
     */
    @ExcelProperty(value = "单据编码")
    @ApiModelProperty(value = "单据编码")
    private String billNo;

    /**
     * 责任部门跟进结果
     */
    @ExcelProperty(value = "责任部门跟进结果")
    @ApiModelProperty(value = "责任部门跟进结果")
    private String responsibleResults;

    /**
     * 是否确认损失（0无损失 1 确认损失）
     */
    @ExcelProperty(value = "是否确认损失",converter = TblRefundAuditBillConvert.class)
    @ApiModelProperty(value = "是否确认损失")
    private Integer isLoss;

    /**
     * 责任部门核实人
     */
    @ExcelProperty(value = "责任部门核实人")
    @ApiModelProperty(value = "责任部门核实人")
    private String responsiblePerson;

    /**
     * 排序字段
     */
    private Integer orderField;

    /**
     * 最后有效节点ID
     */
    private String lastEffectiveId;


}
